import request from '../request/request'

export function getUserInfo(params) {
  return request({
    url: '/userInfo',
    header: {
      'Authorization': 'Bearer ' + params.token
    },
    data: params.data,
    method: 'get'
  })
}
export function putUserInfo(params) {
  return request({
    url: '/userInfo',
    header: {
      'Authorization': 'Bearer ' + params.token
    },
    data: params.data,
    method: 'put'
  })
}